package com.imooc.ad.dao;

import com.imooc.ad.entity.AdUnit;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Description: TODO
 * @ClassName: AdUnitItRepository
 * @Author: zhangzhongyu
 * @Date: 2019-10-12 17:34
 * @Version: 1.0
 */
public interface AdUnitRepository extends JpaRepository<AdUnit, Long> {

    AdUnit findByPlanIdAndunitName(Long planId, String unitName);

    List<AdUnit> findAllByunitStatus(Integer unitStatus);
}
